// 返回初始化用的设置

import BreakingMap from "./pool/Map";

/**
 * 随机产生 openId
 */
const mockOpenId = (): string => {
    let str = Date.now().toString(36);
    for (let i = 0; i < 7; i++) {
        str += Math.ceil(Math.random() * (10 ** 4)).toString(36);
    }
    return str;
};


export default {
    // MGOBE 游戏信息
    gameId: "obg-aeqf1iy8",
    secretKey: "41521af22a911ddd2cd569323f6f53738939b928",
    url: "aeqf1iy8.wxlagame.com",
    // 玩家 ID，建议使用真实的 openId
    openId: mockOpenId(),
    isopenId: true,
    // 默认匹配 Code
    matchCode: "match-cdu5q5zh",
    // 默认头像
    avatarpath: "images/avatarMan",
    avatarurl: "https://wx.qlogo.cn/mmopen/vi_32/Dia7M60TQvzPnxPEyH3f83nsb0aeibaDsRbNzfnLVnUXXibw3Vzh90uib2fmC73WsmmKGOicVic2KjQDVicJguicibKSs0A/132",
    isTest: false,

    // URL

    // backgroundURL: "https://7370-spaceclick-8gsbtwpaa16172ee-1302540294.tcb.qcloud.la/spaceClick/images/ui/background2.jpg?sign=053e677e05e9f81cb1c47a33b8d53162&t=1607794857",
    // fixedStarURL: "https://7370-spaceclick-8gsbtwpaa16172ee-1302540294.tcb.qcloud.la/spaceClick/images/flyingObjects/Sun.png?sign=c78a25b247155a86bb6f1e64c2f31c30&t=1607503009",
    // undiscoveredplanetURL: "https://7370-spaceclick-8gsbtwpaa16172ee-1302540294.tcb.qcloud.la/spaceClick/images/flyingObjects/Mars.png?sign=7f30cb04644dc7379c09d7e9b95e7f34&t=1607502995",
    // discoveredPlanetURL: "https://7370-spaceclick-8gsbtwpaa16172ee-1302540294.tcb.qcloud.la/spaceClick/images/flyingObjects/Earth.png?sign=78a087246b6e51845bbd8ad83426f56d&t=1607502976",
    // spaceShipURL: "https://7370-spaceclick-8gsbtwpaa16172ee-1302540294.tcb.qcloud.la/spaceClick/images/flyingObjects/UFO.png?sign=9cc2da309295eb345847ff0dc5c97f1b&t=1607503022",
    // spaceStationURL: "https://7370-spaceclick-8gsbtwpaa16172ee-1302540294.tcb.qcloud.la/spaceClick/images/flyingObjects/Earth.png?sign=78a087246b6e51845bbd8ad83426f56d&t=1607502976",
    // ins1URL: "https://7370-spaceclick-8gsbtwpaa16172ee-1302540294.tcb.qcloud.la/spaceClick/images/instructions/ins1.png?sign=374f8ab2968460d948a55105a4d17ebf&t=1607576752",
    // ins2URL: "https://7370-spaceclick-8gsbtwpaa16172ee-1302540294.tcb.qcloud.la/spaceClick/images/instructions/ins2.png?sign=015b930f4bc09624f0033366af8bb12f&t=1607576763",
    // ins3URL: "https://7370-spaceclick-8gsbtwpaa16172ee-1302540294.tcb.qcloud.la/spaceClick/images/instructions/ins3.png?sign=89d00aa9dc0a1dde9714ed3844756af5&t=1607576773",
    // ins4URL: "https://7370-spaceclick-8gsbtwpaa16172ee-1302540294.tcb.qcloud.la/spaceClick/images/instructions/ins4.png?sign=28047b2cb9269c55da174a20da06c4af&t=1607576784",
    // ins5URL: "https://7370-spaceclick-8gsbtwpaa16172ee-1302540294.tcb.qcloud.la/spaceClick/images/instructions/ins5.png?sign=16a9e473a9a59bbd7808c8fbd0c0041a&t=1607577350",
    // ins6URL: "https://7370-spaceclick-8gsbtwpaa16172ee-1302540294.tcb.qcloud.la/spaceClick/images/instructions/intro.png?sign=e4a9c2bb2f6aa268eb9dd4fa2e6d8e31&t=1607775805",

    shareToFriendURL: "https://7370-spaceclick-5gi9r2jt4f42bc72-1304482792.tcb.qcloud.la/image/ui/share.jpg?sign=e27ee8b92a10b80356e81478d2cb47c0&t=1607956587",
    shareToTimelineURL: "https://7370-spaceclick-5gi9r2jt4f42bc72-1304482792.tcb.qcloud.la/image/ui/share2.jpg?sign=9c27f10cb66b4714e8700eb83a3aff92&t=1607956626",

    HomeMusicURL: "https://7370-spaceclick-5gi9r2jt4f42bc72-1304482792.tcb.qcloud.la/audio/main/bgm.mp3?sign=bec701df823e323f711e1fa6bf013d0c&t=1607953657",
    HomeTapSoundURL: "https://7370-spaceclick-5gi9r2jt4f42bc72-1304482792.tcb.qcloud.la/audio/main/tap.mp3?sign=eefda4bc508e21cf56043922a48ab752&t=1607953677",
    GameEndSoundURL: "https://7370-spaceclick-5gi9r2jt4f42bc72-1304482792.tcb.qcloud.la/audio/sub/end.mp3?sign=e9cf128a91b7cb866b9325c1b6ac7a9a&t=1607953695",
    GameGrabSoundURL: "https://7370-spaceclick-5gi9r2jt4f42bc72-1304482792.tcb.qcloud.la/audio/sub/grab.mp3?sign=d7c06a95efed67f2885043873d20bf6e&t=1607953706",
    GameShootSoundURL: "https://7370-spaceclick-5gi9r2jt4f42bc72-1304482792.tcb.qcloud.la/audio/sub/shoot.mp3?sign=eb067aa2bffb3100679ef11441a30318&t=1607953722",

    // supportLibeUrl: "https://7370-spaceclick-5gi9r2jt4f42bc72-1304482792.tcb.qcloud.la/image/ui/indicator.png?sign=6ce0dec98b95d3c345680bddac8fc4f6&t=1607954368",
    // 星球随机的参数
    minWidth: 120,
    maxWidth: 150,
    minDelta: 20,

    countDownTime: 10,

    // 其它
    allBreakingMapNum: new BreakingMap().getLevelNum(),
};